# -*- coding: utf-8 -*-
from wbhttp import HttpClient
from logger import logger


class Weibo:
    def get_st(self):
        url = 'https://m.weibo.cn/api/config'
        resp = HttpClient.get(url)
        if resp.status_code == 200:
            st = resp.json()['data']['st']
        else:
            logger.info(u'获取st失败')
        return st
